﻿module Sustainalytics.Authentication {

    export interface IAuthenticationService {

        login(userCredentials): ng.IHttpPromise<AuthData>;
        logout(redirectTo?: string, err?: number);
        profile(): ng.IHttpPromise<IUserInfo>;
        refreshToken(): ng.IPromise<any>;
        forgotPassword(username: string): ng.IHttpPromise<any>;
        changePassword(changePasswordParams): ng.IHttpPromise<any>;
        permissions(): ng.IHttpPromise<Sustainalytics.Claims.ActiveResourcesDto[]>
    }
}